package com.ruoyi.shoufang.controller;


import com.ruoyi.shoufang.domain.AjaxResult;
import com.ruoyi.shoufang.service.BankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/bank")
public class BankController {
    @Autowired
    private BankService bankService;

    /**
     * @Description 查询所有银行名称
     */
    @GetMapping("getBankNameList")
    public AjaxResult getBankNameList(){
        List<String> list = bankService.getNames();
        return AjaxResult.success(list);
    }
}
